﻿
namespace DynamicSettings
{
    class Property
    {
        private object key, value;

        /// <summary>
        /// Initializes a new instance of the <see cref="Property"/> class.
        /// </summary>
        /// <param name="oWeb">The web object.</param>
        public Property(object key, object value)
        {
            this.key = key;
            this.value = value;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="Property"/> class.
        /// </summary>
        /// <param name="key">The key.</param>
        public Property(object key)
        {
            this.key = key;
            this.value = "";
        }

        /// <summary>
        /// Gets or sets the key.
        /// </summary>
        /// <value>
        /// The key.
        /// </value>
        public string Key
        {
            get
            {
                return this.key as string;
            }
            set
            {
                this.key = value;
            }
        }

        /// <summary>
        /// Gets or sets the value.
        /// </summary>
        /// <value>
        /// The value.
        /// </value>
        public string Value
        {
            get
            {
                return this.value as string;
            }
            set
            {
                this.value = value;
            }
        }
    }
}
